package com.example.housingRentalSystem.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Set;

/**
 * @author 王硕
 */
@Data
@ApiModel(value = "用户表")
public class User {
    @ApiModelProperty(name = "主键")
    private Integer id;

    @ApiModelProperty(name = "账号")
    private String account;

    @ApiModelProperty(name = "密码")
    private String password;

    @ApiModelProperty(name = "旧密码")
    private String oldPassword;

    @ApiModelProperty(name = "昵称")
    private String nickname;

    @ApiModelProperty(name = "姓名")
    private String name;

    @ApiModelProperty(name = "手机号")
    private String phone;

    @ApiModelProperty(name = "邮箱")
    private String email;

    @ApiModelProperty(name = "身份证")
    private String idcard;

    @ApiModelProperty(name = "身份证后六位")
    private String idCardLastSix;

    @ApiModelProperty(name = "头像")
    private String avatar;

    @ApiModelProperty(name = "描述")
    private String description;

    @ApiModelProperty(name = "状态,1:代表正常,2代表禁用")
    private Integer status;

    @ApiModelProperty(name = "性别,1:代表男,2代表女")
    private Integer sex;

    @ApiModelProperty(name = "爱好")
    private String hobby;

    @ApiModelProperty(name = "职业")
    private String job;

    @ApiModelProperty(name = "创建时间")
    private Timestamp createTime;

    @ApiModelProperty(name = "更新时间")
    private Timestamp updateTime;

    @ApiModelProperty(name = "是否注销,1:正常使用,2:已经注销")
    private Integer isDel;

    @ApiModelProperty(name = "角色")
    private Set<UserRole> roles;
}
